<!--
 * @Author: your name
 * @Date: 2022-02-22 11:21:32
 * @LastEditTime: 2022-02-26 13:36:09
 * @LastEditors: Please set LastEditors
 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 * @FilePath: \workflow-web\src\App.vue
-->
<template>
  <div id="app">
    <router-view />
  </div>
</template>

<script>
import { mapState, mapGetters } from 'vuex'
import ResizeMixin from '@/layout/mixin/ResizeHandler'

export default {
  name: 'App',

  mixins: [ResizeMixin],

  computed: {
    ...mapState({
      device: (state) => state.app.device,
      sidebar: (state) => state.app.sidebar
    }),
    ...mapGetters(['insideWx'])
  },

  created() {
    this.$root.insideWx = this.insideWx
  }
}
</script>
